﻿using SDDP;

namespace DotNetStar.TheKing.Domain
{
    using Infrastructure;

    /// <summary>
    /// 用户根据积分策略加分
    /// </summary>
    /// <seealso cref="SDDP.Event" />
    public class UserPointEvent : Event
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UserPointEvent"/> class.
        /// </summary>
        /// <param name="userId">The user identifier.</param>
        /// <param name="pointStrategyType">Type of the point strategy.</param>
        public UserPointEvent(long userId, PointStrategyTypes pointStrategyType)
        {
            this.UserId = userId;
            this.PointStrategyType = pointStrategyType;
        }

        /// <summary>
        /// 要加积分的用户。
        /// </summary>
        public long UserId { get;  }
        /// <summary>
        /// 积分策略类型。
        /// </summary>
        public PointStrategyTypes PointStrategyType { get; }
    }
}
